#include "MsgQueue.hpp"
#include"handler.hpp"

int main()
{

    MysQueue_serve mys;
    std::string text;
    HandlerEntry hd;
    while (1)
    {
        mys.Receive(MSG_TYPT_CLIENT, text);
        std::cout << "Recive:" << text << std::endl;
        if (text == "exit")
        {
            break;
        }
         hd.EnableHandler(true,true,true);
         hd.Run(text);

    }

    return 0;
}